package com.sky.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 购物车
 */
@ApiModel(description = "购物车数据")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ShoppingCart implements Serializable {

    @ApiModelProperty("购物车id")
    private Long id;
    //名称
    @ApiModelProperty("购物车名称")
    private String name;
    //用户id
    @ApiModelProperty("用户id")
    private Long userId;
    //菜品id
    @ApiModelProperty("菜品id")
    private Long dishId;
    //套餐id
    @ApiModelProperty("套餐id")
    private Long setmealId;
    //口味
    @ApiModelProperty("购物车口味")
    private String dishFlavor;
    //数量
    @ApiModelProperty("菜品数量")
    private Integer number;
    //金额
    @ApiModelProperty("菜品金额")
    private BigDecimal amount;
    //图片
    @ApiModelProperty("菜品图片")
    private String image;
    //创建时间
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;
}
